package com.example.trans;

import com.example.Employee;
import com.example.PayrollDatabase;
import com.example.Transaction;

public abstract  class ChangeEmployeeTransaction implements Transaction {
    private int empId;
    public ChangeEmployeeTransaction(int empId){
        this.empId = empId;
    }
    
    public void execute(){
        Employee e = PayrollDatabase.getEmployee(empId);
        doChange(e);
    }

    protected abstract  void doChange(Employee e);
    
    

}
